package com.wuliaogame.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author wuliaogame
 * @since 2022-04-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="PBisai对象", description="")
public class PBisai implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "比赛人id")
    private Integer userId;

    @ApiModelProperty(value = "使用的英雄id")
    private Integer heroId;

    @ApiModelProperty(value = "比赛结果（胜负）")
    private String result;

    @ApiModelProperty(value = "比赛时间(添加时间)")
    private Date creatTime;

    @TableField(exist = false)
    private PUser pUser;

    @TableField(exist = false)
    private PHero pHero;

    @TableField(exist = false)
    private int num;

    @TableField(exist = false)
    private float shenlv;
}
